Innerhtml keeps adding up instead of replacing it - javascript - html